﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ams_general.aspx.cs" Inherits="ams_Ams_general" MasterPageFile="~/ams/Ams.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="grid_16" id="content">
    <!--  TITLE START  --> 
    <div class="grid_9">
    <h1 class="dashboard">Account Management System<asp:ToolkitScriptManager 
            ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        </h1>
    </div>
    <!--RIGHT TEXT/CALENDAR-->
    <!--RIGHT TEXT/CALENDAR END-->
    <div class="clear">
    </div>
    <!--  TITLE END  -->    
    <!-- #PORTLETS START -->
    <div id="portlets">
    <!-- FIRST SORTABLE COLUMN START -->
      <div class="column" id="left">
          <asp:LinkButton ID="LinkButton1"   CssClass="back_icon" runat="server" 
              onclick="LinkButton1_Click">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Back</asp:LinkButton>
          
     
      
      </div>
        <div class="column" id="Div1">
         
      
      </div>
       <div class="column" id="Div2">
         
      
           <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
         
      
           <asp:Label ID="lb_company_id" runat="server" Text="0" Visible="False"></asp:Label>
           <asp:Label ID="lb_account_id" runat="server" Text="0" Visible="False"></asp:Label>
         
      
      </div>
     
      <!-- FIRST SORTABLE COLUMN END -->
      <!-- SECOND SORTABLE COLUMN START -->
      
	<!--  SECOND SORTABLE COLUMN END -->
    <div class="clear"></div>
    <!--THIS IS A WIDE PORTLET-->
    <div class="portlet">
        <div class="portlet-header fixed">
            <img src="images/icons/user.gif" width="16" height="16" alt="Employement" /> Personal List </div>
		<div class="portlet-content nopadding">
        <asp:Panel ID="PCompany" runat="server" >
            <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" 
                style="line-height: 40px">
            <thead>
              <tr>
                <th width="166" scope="col">&nbsp;Company Name</th>
                <th width="66" scope="col">Country</th>
                <th width="210" scope="col">Address</th>
                 <th width="110" scope="col">Telephone</th>
                <th width="55" scope="col"># Account's</th>
                <th width="55" scope="col"># Employee's</th>
              </tr>
            </thead>
            <tbody>
            <% if (companyarr != null && companyarr.Count > 0)
               {
                   foreach (RE_GenericBean rgb in companyarr)
                   {
            %>
              <tr>
                <td width="166">&nbsp;<a href="Ams_general.aspx?company=<%=rgb.intC1 %>"><%=rgb.strC1 %></a></td>
                <td width="66"><%=rgb.strC15 %></td>
                <td width="210"><%=rgb.strC3 %>&nbsp;<%=rgb.strC4 %></td>
                <td width="110"><%=rgb.strC9 %></td>
                <td width="55" style="text-align:center"><%=rgb.intC2 %></td>
                <td width="55" style="text-align:center"><%=rgb.intC3 %></td>
              </tr>
            <%     }
               }
            %>
            </tbody>
            </table>
            <br /><br  />
        </asp:Panel>
         <asp:Panel ID="PAccount" runat="server" >
            <table width="100%" cellpadding="0" cellspacing="0" id="Table_acc"  
                style="line-height: 40px; ">
            <thead>
              <tr >
                <th width="136" scope="col" style="text-align:left">&nbsp;Account Name</th>
                <th width="136" scope="col"  style="text-align:left">Manager</th>
                <th width="90   " scope="col"  style="text-align:left" ># Employee</th>
               
              </tr>
            </thead>
            <tbody>
            <% if (accountarr != null && accountarr.Count > 0)
               {
                   foreach (RE_GenericBean rgb in accountarr)
                   {
            %>
              <tr  style="line-height: 40px; border-top-style: solid; border-top-width: thin; border-top-color: #CCCCCC;">
                <td width="116">&nbsp;<a href="Ams_general.aspx?account=<%=rgb.intC1 %>"><%=rgb.strC1 %></a></td>
                <td width="116"><%=rgb.strC3 %></td>
                <td width="40"><%=rgb.intC3 %></td>
              </tr>
            <%     }
               }
            %>
            </tbody>
            </table>
            <br /><br />
        </asp:Panel>
        <asp:Panel ID="PEmployee" runat="server" >  
     
            <div class="floatRight" id="right">
         <div id="searchwrapper" >
             <form action="" class="searchbox">
                <asp:TextBox type="text" class="searchbox" ID="tb_search" runat="server"></asp:TextBox>
                <asp:Image ID="Image1" runat="server" ImageUrl="images/blank.gif" CssClass="searchbox_submit" />
            </form>
        </div> 
        </div>
        
            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                Width="100%">
               
                
               
                <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1"></asp:TabPanel>
               
                
               
            </asp:TabContainer>
       
                <asp:LinkButton ID="Button1" runat="server" CssClass="button_add_user" 
                    onclick="Button1_Click"><span>New</span></asp:LinkButton>
         
           
          
        </asp:Panel>
        </div>
    </div>
<!--  END #PORTLETS -->  
   </div>
    <div class="clear"> </div>
  </div>
</asp:Content>
